<%@ page contentType="text/html;charset=utf-8"%>
 <%
 String ctx = request.getContextPath();
 session.setAttribute("stx",ctx+"/static");
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${stx}/css/reset.css" type="text/css" rel="stylesheet" />
<link href="${stx}/css/public.css" type="text/css" rel="stylesheet" />
<title></title>
<script type="text/javascript" src="${stx}/js/jquery/jquery.js"></script>
<script type="text/javascript" src="${stx}/js/public/core.js"></script>
<script type="text/javascript" src="${stx}/js/public/public.js"></script>
<script type="text/javascript" src="${stx}/js/public/common.js"></script>
</head>
<body>
<% 
String errorMessage = "系统繁忙，请稍后再试！";
try {
	Throwable exception = (Throwable) request.getAttribute("javax.servlet.error.exception"); 
	if (exception != null) {
		if (exception instanceof ServletException) {
			ServletException sex = (ServletException) exception;
			Throwable rootCause = sex.getRootCause();
			if (rootCause == null)
				rootCause = sex;
			rootCause.printStackTrace(); 
		}
		else {
			exception.printStackTrace(); 
		}
		errorMessage = exception.getMessage();
	} 
	else  {
		errorMessage = "未知异常，请联系管理员！";
	} 
} catch (Exception ex) {
	errorMessage = "系统繁忙，请稍后再试！";
	ex.printStackTrace();
}
%>
</body>
</html>
<script type="text/javascript">
dopop({
	id : 'msg',
	title : '错误信息',
	html : "<%=errorMessage%>",
	isMsg : 'error',
	button : "<button type='button' class='nBtn-01' onclick=\"jQuery('#msg').hide();\">确定</button>"
});
</script>